How to do an index increment for my case